//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package objects;

import java.util.Collection;
import java.util.LinkedHashMap;

public class Forests {
    private static final LinkedHashMap<Integer, ForestsEntry> treesById = new LinkedHashMap();
    private static final LinkedHashMap<String, ForestsEntry> treesByName = new LinkedHashMap();

    public Forests() {
    }

    public static void createForestsEntry(String Name, String Tool, Integer ExpClear, Integer TileWidth, Integer TileHeight) {
        ForestsEntry fe = new ForestsEntry(Name, Tool, ExpClear, TileWidth, TileHeight, Integer.valueOf(treesById.size()));
        treesById.put(fe.getGlobalID(), fe);
        treesByName.put(fe.getName(), fe);
    }

    public static ForestsEntry getById(Integer id) {
        return (ForestsEntry)treesById.get(id);
    }

    public static ForestsEntry getByName(String name) {
        return (ForestsEntry)treesByName.get(name);
    }

    public static Collection<ForestsEntry> get() {
        return treesById.values();
    }
}
